package com.test.group6.service.Ipml;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.test.group6.domain.WorkesInformation;
import com.test.group6.mapper.DeleteWorkesMapper;
import com.test.group6.service.DeleteWorkesService;
/**
 * Title: WorkersServiceImpl.java
   Description:企业高管信息维护Service实现类层
 * @author leng_qqing
 * @date 2021年7月23日
 * @version 1.0
 */
@Service
public class DeleteWorkesServiceImpl implements DeleteWorkesService{
	@Autowired
	DeleteWorkesMapper deleteWorkesMapper;
	/**
	 * @Description: 删除企业高管基本信息
	 * @param:enterpriseId 企业编号
	 * @return:{@link Integer}
	 */
	@Override
	public int deleteWorkesByEnterpriseId(String enterpriseId) {

		return deleteWorkesMapper.deleteWorkesByEnterpriseId(enterpriseId);
	}
	/**
	 * @Description: 删除企业高管基本信息
	 * @param:workesId 企业高管编号
	 * @return:{@link Integer}
	 */
	@Override
	public int deleteWorkesById(String workesId) {
		return deleteWorkesMapper.deleteWorkesById(workesId);
	}
	
	/**
	 * @Description: 查询企业高管基本信息
	 * @param:enterpriseId 企业编号
	 * @return:{@link List<WorkesInformation>}
	 */
	@Override
	public List<WorkesInformation> selectWorkes(String enterpriseId) {
		return deleteWorkesMapper.selectWorkes(enterpriseId);
	}

	
}
